<template>
  <div>
    营销管理
    <el-button type="primary" size="default" @click="dialogVisible = !dialogVisible">新增</el-button>
    <el-dialog
      title="热销详情"
      :visible.sync="dialogVisible"
      width="70%"
    >
      <GoodsComponent :text="true" @closedialog="closeDialog" />
      <span slot="footer" class="dialog-footer">

        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>

  </div>
</template>

<script>
import GoodsComponent from '@/views/goodsManage/list/index'
export default {
  components: {
    GoodsComponent
  },
  data() {
    return {
      dialogVisible: false
    }
  },
  computed: {

  },
  created() {

  },
  mounted() {

  },
  methods: {
    closeDialog() {
      this.dialogVisible = !this.dialogVisible
    }
  }
}
</script>

<style scoped lang="scss">

</style>
